<?php
namespace Register\model;

class Participant
{
   public $ID;
   public $TITLE;
   public $PHONE;
   public $EMAIL;
   public $GENDER;
   public $FIRST_NAME;
   public $MIDDLE_NAME;
   public $LAST_NAME;
   public $ADDRESS;
   public $NEAREST_CITY;
   public $FUNDING;
   public $ORGANIZATION;
   public $COMMENT;
   /*update data*/
 /*  public $INSERT_USER_ID;
   public $UPDATE_USER_ID;
   public $INSERT_DATETIME;
   public $UPDATE_DATETIME;
   public $STATUS;
  */ 
   
   public function exchangeArray($data)
   {
       $this->ID=(!empty($data['ID'])) ? $data['ID'] : null;
       $this->TITLE=(!empty($data['TITLE'])) ? $data['TITLE'] : null;
       $this->PHONE=(!empty($data['PHONE'])) ? $data['PHONE'] : null;
       $this->EMAIL=(!empty($data['EMAIL'])) ? $data['EMAIL'] : null;
       $this->GENDER=(!empty($data['GENDER'])) ? $data['GENDER'] : null;
       $this->FIRST_NAME=(!empty($data['FIRST_NAME'])) ? $data['FIRST_NAME'] : null;
       $this->MIDDLE_NAME=(!empty($data['MIDDLE_NAME'])) ? $data['MIDDLE_NAME'] : null;
       $this->LAST_NAME=(!empty($data['LAST_NAME'])) ? $data['LAST_NAME'] : 0;
       $this->ADDRESS=(!empty($data['ADDRESS'])) ? $data['ADDRESS'] : null;
       $this->NEAREST_CITY=(!empty($data['NEAREST_CITY'])) ? $data['NEAREST_CITY'] : null;
       $this->FUNDING=(!empty($data['FUNDING'])) ? $data['FUNDING']  : null;
       $this->ORGANIZATION=(!empty($data['ORGANIZATION'])) ? $data['ORGANIZATION']  : null;
       $this->COMMENT=(!empty($data['COMMENT'])) ? $data['COMMENT']  : null;
       
 /*    $this->INSERT_USER_ID=(!empty($data['INSERT_USER_ID'])) ? $data['INSERT_USER_ID'] : null;
       $this->UPDATE_USER_ID=(!empty($data['UPDATE_USER_ID'])) ? $data['UPDATE_USER_ID'] : null;
       $this->INSERT_DATETIME=(!empty($data['INSERT_DATETIME'])) ? $data['INSERT_DATETIME'] : null;
       $this->UPDATE_DATETIME=(!empty($data['UPDATE_DATETIME'])) ? $data['UPDATE_DATETIME'] : null;
       $this->STATUS=(!empty($data['STATUS'])) ? $data['STATUS'] : 1; //active=1 // inactive=0
  */     
   }
   
   public function getArrayCopy()
   {
       return get_object_vars($this);
   }
}

?>